package server;

import java.sql.Wrapper;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * mapper类
 */
public class Mapper {

    //mapper所包含的host
    public Map<Integer,Host> hostMap = new HashMap<>();

    /**
     * host类
     */
    public static class Host{
        //端口号
        public int port = 8080;

        //服务名
        public String name;

        //app路劲
        public String appBase;

        //host包含的context
        public Map<String,Context> contextMap = new HashMap<>();

    }

    public static class Context{

        public String path;

        /**
         * 对应的类加载器
         */
        public ClassLoader classLoader;

        public Map<String, Wrapper> wrapperMap = new HashMap<>();

    }

    public static class Wrapper{

        public HttpServlet httpServlet;
    }


}
